package com.tmt.im.jpa.repository;

import com.tmt.data.jpa.repository.ITmtBaseRepo;
import com.tmt.im.common.enums.ChannelType;
import com.tmt.im.jpa.entity.WithdrawBindingParam;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/10/20 14:04
 * @Version 1.0
 **/

@Repository
public interface WithdrawBindingParamRepo extends ITmtBaseRepo<WithdrawBindingParam, Long> {

    WithdrawBindingParam findOneByCreatorIdAndChannelType(Long creatorId, String channelType);

    List<WithdrawBindingParam> findAllByCreatorId(Long creatorId);
}
